  \node (n0) at (4,10) {$r$};
  %\node (na) at (0,8)  {$r a$};
  \node (na1)%[fill=blue!20] 
  at (1,7.5)  {$r a_1$};
  \node (na2)%[fill=blue!20] 
  at (2,7.5) {$r a_2$};
  %\node (nb) at (3,8)  {$r b$};
  \node (nb1)%[fill=red!20] 
  at (4,7.5)  {$r b_1$};
  \node (nb2)%[fill=red!20] 
  at (5,7.5)  {$r b_1$};
  %\node (nc) at (6,8)  {$r c$};
  \node (nc1)%[fill=green!20] 
  at (7,7.5)  {$r c_1$};
  \node (nc2)%[fill=green!20] 
  at (8,7.5)  {$r c_1$};
  %\node (nab) at (0,5)  {$r a b$};
  \node (na1b1)%[fill=magenta!20] 
  at (0.0,4.5)  {$r a_1 b_1$};
  \node (na1b2)%[fill=magenta!20] 
  at (0.7,4.5)  {$r a_1 b_2$};
  \node (na2b1)%[fill=magenta!20] 
  at (1.4,4.5)  {$r a_2 b_1$};
  \node (na2b2)%[fill=magenta!20] 
  at (2.1,4.5)  {$r a_2 b_2$};
  %\node (nac) at (3,5)  {$r a c$};
  \node (na1c1)%[fill=cyan!20] 
  at (3.0,4.5)  {$r a_1 c_1$};
  \node (na1c2)%[fill=cyan!20] 
  at (3.7,4.5)  {$r a_1 c_2$};
  \node (na2c1)%[fill=cyan!20] 
  at (4.4,4.5)  {$r a_2 c_1$};
  \node (na2c2)%[fill=cyan!20] 
  at (5.1,4.5)  {$r a_2 c_2$};
  %\node (nbc) at (6,5)  {$r b c$};
  \node (nb1c1)%[fill=yellow!50] 
  at (6.0,4.5)  {$r b_1 c_1$};
  \node (nb1c2)%[fill=yellow!50] 
  at (6.7,4.5)  {$r b_1 c_2$};
  \node (nb2c1)%[fill=yellow!50] 
  at (7.4,4.5)  {$r b_2 c_1$};
  \node (nb2c2)%[fill=yellow!50] 
  at (8.1,4.5)  {$r b_2 c_2$};
  %\node (nabc) at (2,2)  {$r a b c$};
  \node (na1b1c1)%[fill=black!10] 
  at (1.5,1.5)  {$r a_1 b_1 c_1$};
  \node (na1b1c2)%[fill=black!10] 
  at (2.2,1.5)  {$r a_1 b_1 c_2$};
  \node (na1b2c1)%[fill=black!10] 
  at (2.9,1.5)  {$r a_1 b_2 c_1$};  
  \node (na1b2c2)%[fill=black!10] 
  at (3.6,1.5)  {$r a_1 b_2 c_2$};
  \node (na2b1c1)%[fill=black!10] 
  at (4.3,1.5)  {$r a_2 b_1 c_1$};
  \node (na2b1c2)%[fill=black!10] 
  at (5.0,1.5)  {$r a_2 b_1 c_2$};
  \node (na2b2c1)%[fill=black!10] 
  at (5.7,1.5)  {$r a_2 b_2 c_1$};
  \node (na2b2c2)%[fill=black!10] 
  at (6.4,1.5)  {$r a_2 b_2 c_2$};

  %\foreach \from/\to in {na/na1,na/na2,nb/nb1,nb/nb2,nc/nc1,nc/nc2}
  %  \draw[dashed] (\from) -| (\to);

  %\foreach \from/\to in {nab/na1b1,nab/na1b2,nab/na2b1,nab/na2b2}
  %  \draw[dashed] (\from) -| (\to);

  %\foreach \from/\to in
%{nabc/na1b1c1,nabc/na1b1c2,nabc/na1b2c1,nabc/na1b2c2,nabc/na2b1c1,nabc/na2b1c2,nabc/na2b2c1,nabc/na2b2c2}
  %  \draw[dashed] (\from) -| (\to);

  \foreach \from/\to in {n0/na1,n0/na2,na1/na1b1,na1/na1b2,na2/na2b1,na2/na2b2,na1/na1c1,na1/na1c2,na2/na2c1,na2/na2c2}
    \draw%[blue]%
    (\from) -- (\to);
  \foreach \from/\to in {n0/nb1,n0/nb2,nb1/na1b1,nb1/na2b1,nb2/na1b2,nb2/na2b2,nb1/nb1c1,nb1/nb1c2,nb2/nb2c1,nb2/nb2c2}
    \draw%[red!10] 
    (\from) -- (\to);
  \foreach \from/\to in {n0/nc1,n0/nc2,nc1/na1c1,nc1/na2c1,nc2/na1c2,nc2/na2c2,nc1/nb1c1,nc1/nb2c1,nc2/nb1c2,nc2/nb2c2}
    \draw%[green!10] 
    (\from) -- (\to);
  \foreach \from/\to in {na1b1/na1b1c1,na1b2/na1b2c1,na2b1/na2b1c1,na2b2/na2b2c1,na1b1/na1b1c2,na1b2/na1b2c2,na2b1/na2b1c2,na2b2/na2b2c2}
    \draw%[magenta!10] 
    (\from) -- (\to);
  \foreach \from/\to in {na1c1/na1b1c1,na1c1/na1b2c1,na2c1/na2b1c1,na2c1/na2b2c1,na1c2/na1b1c2,na1c2/na1b2c2,na2c2/na2b1c2,na2c2/na2b2c2}
    \draw%[cyan!10] 
    (\from) -- (\to);
  \foreach \from/\to in {nb1c1/na1b1c1,nb2c1/na1b2c1,nb1c1/na2b1c1,nb2c1/na2b2c1,nb1c2/na1b1c2,nb2c2/na1b2c2,nb1c2/na2b1c2,nb2c2/na2b2c2}
    \draw%[yellow!10] 
    (\from) -- (\to);

  %\foreach \from/\to in {n0/na,n0/nb,n0/nc}
  %  \draw[dashed] (\from) -- (\to);
  %\foreach \from/\to in {na/nab,na/nac,nb/nab,nb/nbc,nc/nac,nc/nbc,nab/nabc,nac/nabc,nbc/nabc}
  %  \draw[dashed] (\from) -- (\to); 
